package cjyyp.day04;

import lombok.extern.slf4j.Slf4j;

import javax.script.ScriptException;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.locks.Condition;
import java.util.concurrent.locks.Lock;
import java.util.function.Function;

@Slf4j
public class 自定义锁_AQS {
    public static void main(String[] args) throws ScriptException {
        ConcurrentHashMap<String, Integer> map=new ConcurrentHashMap<>();
        map.computeIfAbsent("1", new Function<String, Integer>() {
            @Override
            public Integer apply(String s) {
                return null;
            }
        });
        
    }
}
class MyLock implements Lock{

    @Override
    public void lock() {

    }

    @Override
    public void lockInterruptibly() throws InterruptedException {

    }

    @Override
    public boolean tryLock() {
        return false;
    }

    @Override
    public boolean tryLock(long time, TimeUnit unit) throws InterruptedException {
        return false;
    }

    @Override
    public void unlock() {

    }

    @Override
    public Condition newCondition() {
        return null;
    }
}